<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <h2>JS面向对象</h2>
</body>
<script>
    console.log(Function instanceof Object)
    console.log(Array instanceof Object)
    console.log(RegExp instanceof Object)


    // const arr=[ ]
    // const arr2=new Array()
    // const reg=/[abc]/g
    // const reg2=new RegExp('[abc]')
    // const fn=new Function()

    function aa() {
        console.log('第1个aa函数', arguments)

        if (arguments.length === 2) {
            console.log('完成去睡觉')
        } else if (arguments.length === 3) {
            console.log('完成去吃饭')
        }
    }

    // function aa() {
    //     console.log('第2个aa函数')
    // }

    aa(10, 20)
</script>

</html>